|
CruiseControl.NET : Setting up from scratch Part 01
This page last changed on Sep 29, 2007 by williams.
We'll be setting it up step by step, so this will be a real step by step approach. The reason is you can see what the benefits are of the setups used in this document. Typically a build system consists of 2 servers and X development machines, they can be on different physical machines, but they can also be hosted on 1 machine. These 2 servers are : For this example the setup will be on 1 machine, so everybody can follow this tutorial without having to maintain multiple PC's. The easiest way to set things up is to respect the following installation order : Step 1 : Installing CCNetSince it has an installer, it is in fact : setup, next, next, next, ... Step 2 : Folder structureMake the following folders
note : this is not the best folder structure for sources, but for these example it will do fine. Step 3 : First basic CCNet projectThis project is just for playing around a bit with cruisecontrol, without having to do any real coding. @echo off set If you run this script, you'll see all the environment variables of your machine.
Step 4 : Configuring the build serverStart the build service, (there is a desktop icon) you will see a command window wit the following :
[CCNet Server:DEBUG] The trace level is currently set to debug. This will cause CCNet to log at the most verbose level, Since there are no projects, we'll add one for this simple script. Leave the CCNet server running, it will pick up the changes to the config file after every save. Modify CCNet.config, found in \program files\CruiseControl.Net\server Enter the following text : <cruisecontrol>
<project>
<name>SimpleExample</name>
<triggers />
<tasks>
<exec>
<executable>c:\projects\test.cmd</executable>
</exec>
</tasks>
</project>
</cruisecontrol>
You'll see that the command window of the server added the following lines. [680:INFO] Configuration changed: Restarting CruiseControl.NET Server Now you can also browse to the dashboard, open your browser and surf to http://localhost/ccnet Press the 'Force' button to force the build. Next press 'Refresh Status' to view the result.
You see that the build was successfull Clicking on the project name 'SimpleExample' will show a page with project related information. From there on you can go to individual builds. This shows how to set up a very basic project in CCNet, the next topic will cover : ° improving the project setup |
| Document generated by Confluence on Mar 14, 2009 02:55 |